package com.lucweb.entity;

import javax.persistence.*;

@Entity
@Table(name = "task_other", schema = "firesystem", catalog = "")
public class TaskOther {
    private int id;
    private String companyName;
    private String taskName;
    private String taskTime;
    private String taskPeople;
    private String taskStatus;
    private String remarks;
    private String taskText;
    private String wcqrrjsj;

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "companyName", nullable = true, length = 255)
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Basic
    @Column(name = "taskName", nullable = true, length = 255)
    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    @Basic
    @Column(name = "taskTime", nullable = true, length = 255)
    public String getTaskTime() {
        return taskTime;
    }

    public void setTaskTime(String taskTime) {
        this.taskTime = taskTime;
    }

    @Basic
    @Column(name = "taskPeople", nullable = true, length = 255)
    public String getTaskPeople() {
        return taskPeople;
    }

    public void setTaskPeople(String taskPeople) {
        this.taskPeople = taskPeople;
    }

    @Basic
    @Column(name = "taskStatus", nullable = true, length = 255)
    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    @Basic
    @Column(name = "remarks", nullable = true, length = 255)
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Basic
    @Column(name = "taskText", nullable = true, length = -1)
    public String getTaskText() {
        return taskText;
    }

    public void setTaskText(String taskText) {
        this.taskText = taskText;
    }

    @Basic
    @Column(name = "wcqrrjsj", nullable = true, length = 255)
    public String getWcqrrjsj() {
        return wcqrrjsj;
    }

    public void setWcqrrjsj(String wcqrrjsj) {
        this.wcqrrjsj = wcqrrjsj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TaskOther taskOther = (TaskOther) o;

        if (id != taskOther.id) return false;
        if (companyName != null ? !companyName.equals(taskOther.companyName) : taskOther.companyName != null)
            return false;
        if (taskName != null ? !taskName.equals(taskOther.taskName) : taskOther.taskName != null) return false;
        if (taskTime != null ? !taskTime.equals(taskOther.taskTime) : taskOther.taskTime != null) return false;
        if (taskPeople != null ? !taskPeople.equals(taskOther.taskPeople) : taskOther.taskPeople != null) return false;
        if (taskStatus != null ? !taskStatus.equals(taskOther.taskStatus) : taskOther.taskStatus != null) return false;
        if (remarks != null ? !remarks.equals(taskOther.remarks) : taskOther.remarks != null) return false;
        if (taskText != null ? !taskText.equals(taskOther.taskText) : taskOther.taskText != null) return false;
        if (wcqrrjsj != null ? !wcqrrjsj.equals(taskOther.wcqrrjsj) : taskOther.wcqrrjsj != null) return false;

        return true;
    }

    @Override
    public String toString() {
        return "TaskOther{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
                ", taskName='" + taskName + '\'' +
                ", taskTime='" + taskTime + '\'' +
                ", taskPeople='" + taskPeople + '\'' +
                ", taskStatus='" + taskStatus + '\'' +
                ", remarks='" + remarks + '\'' +
                ", taskText='" + taskText + '\'' +
                ", wcqrrjsj='" + wcqrrjsj + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
        result = 31 * result + (taskName != null ? taskName.hashCode() : 0);
        result = 31 * result + (taskTime != null ? taskTime.hashCode() : 0);
        result = 31 * result + (taskPeople != null ? taskPeople.hashCode() : 0);
        result = 31 * result + (taskStatus != null ? taskStatus.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (taskText != null ? taskText.hashCode() : 0);
        result = 31 * result + (wcqrrjsj != null ? wcqrrjsj.hashCode() : 0);
        return result;
    }
}
